// 主题相关
const theme = {
  state: {
    themes: 'default'
  },
  mutations: {
    SET_THEME: (state, themes) => {
      state.themes = themes
      localStorage.setItem('themes', themes)
    }
  },
  actions: {
    GetThemes({ commit }) {
      return new Promise((resolve, reject) => {
        const themes = localStorage.getItem('themes')
        resolve({ data: themes })
      }).catch(e => {})
    }
  }
}
export default theme
